package edu.sctu.practice.class02.Wangpeng.Assign03.Assign303;

import edu.sctu.practice.class01.nieyu.assign03.assign03_3.*;
import edu.sctu.practice.class01.nieyu.assign03.assign03_3.Cloneable;

/**
 * Created by wp on 2015/11/16.
 */
public class Name implements Cloneable {
    public String firstName;
    public String middlName;
    public String lastName;

    public Name(String f,String m,String l){
        firstName=f;
        middlName=m;
        lastName=l;
    }
    public String getFullname(){
       String s=firstName+""+middlName+""+lastName;
        return s;
    }
    public void setLastName(String s){
        lastName=s;
    }
    public Object clone(){
        Object o=null;
        try{
            o=(Name)super.clone();
        }catch(CloneNotSupportedException ex){
            return null;
        }
        return o;
    }
}
